import config from '../config'
import model from '../model/steel'
import CanvasAbstract from './canvasAbstract'

class Steel extends CanvasAbstract implements ICanvas {
  num(): number {
    return config.steel.num
  }
  model(): ModelConstructor {
    return model
  }

  // 这里的render方法在main.ts文件中执行了
  render(): void {
    // 注意调用顺序，先创建，后渲染
    super.createModels()
    super.renderModels()
  }
}

export default new Steel('steel')
